@import '@/styles/color';

.chat-container {
  gap: 4px;
  padding: 10px 16px;
  border-radius: 20px;
  background: @WHITE;
  box-sizing: border-box;
  box-shadow: 0 1px 5px 0 @BLANK29;

  .clear {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    border-radius: 50%;
    color: @GRAY05;
    border: 1px solid @GRAY01;

    &.disabled {
      cursor: not-allowed;
      color: @BLANK25;
      background-color: @BLANK12;
    }
  }

  .input {
    width: 100%;
    border: none;
    background-color: transparent;
  }

  :global {
    .ant-input:focus {
      border: none;
      box-shadow: none;
    }
  }

  .box {
    width: 32px;
    height: 32px;
    border-radius: 50%;

    &.plus-box {
      background-color: @WHITE;
      border: 1px solid @WHITE15;
      color: @GRAY16;
      font-size: 12px;
      transition: background-color ease-in-out 0.2s;

      &:hover {
        background-color: @WHITE01;
      }
    }

    &.send-box {
      background-color: @BLANK;
      color: @WHITE;
      font-size: 16px;
      transition: background-color ease-in-out 0.2s;

      &.disabled {
        cursor: not-allowed;
        background-color: @GRAY06;
      }
    }
  }
}

.chat-action {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);

  .to-bottom {
    width: 44px;
    height: 44px;
    position: absolute;
    bottom: 24px;
    border: 1px solid @BLANK25;
    background-color: @WHITE;
    border-radius: 50%;
    cursor: pointer;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    align-items: center;
    font-size: 20px;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 25%);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;

    &.visible {
      opacity: 1;
      visibility: visible;
    }
  }
}
